<?php
/**
 * ============================================================================
 * Copyright (c) 2015-2018 贵州大师兄信息技术有限公司 All rights reserved.
 * siteַ: http://www.dsxcms.com
 * ============================================================================
 * @author:     David Song<songdewei@163.com>
 * @version:    v1.0.0
 * ---------------------------------------------
 * Date: 2018/10/30
 * Time: 2:21 PM
 */

namespace App\WechatMessages\ZPH;


use App\WeChat\Message\TemplateMessage;

class OrderCreatedMessage extends TemplateMessage
{
    protected $template_id = '2XDZl5GivsvsQOBQ0Ojeh2PtHNbEmAtMBntRC4t3Eo4';

    public function __construct()
    {
        $this->setFirst('您的订单已经提交');
        $this->setRemark('点击查看详情');
    }

    public function setProductName($value, $color = '#333')
    {
        $this->setDataValue('keyword1', $value, $color);
    }
    public function setAmount($value, $color = '#333')
    {
        $this->setDataValue('keyword2', $value, $color);
    }
    public function setOrderTime($value, $color = '#333')
    {
        $this->setDataValue('keyword3', $value, $color);
    }
    public function setOrderNo($value, $color = '#333')
    {
        $this->setDataValue('keyword4', $value, $color);
    }
}
